<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="portal" uri="http://amc.af.mil/portal-el" %>
<%@ taglib prefix="rad" uri="http://amc.af.mil/radtaglibrary" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el" %>
<html>
    <head>
        <title>Index of Hand Receipts</title>
    </head>
    <body>
<rad:useBean id="handReceiptViewHelper" />
<rad:setProperty bean="handReceiptViewHelper" name="adpeAccountId" value="${sessionScope.accountId}" />
<rad:setProperty bean="handReceiptViewHelper" name="userId" value="${sessionScope.userId}" />

    <div id="portal-left-bar">
        <jsp:include page="../navigation/navigationMenu.jsp" />
    </div>

    <div id="portal-content">
        <portal:box title="Hand Receipt Index" style="width:800px">
            <display:table name="handReceiptViewHelper.allByAdpeAccount"
                    style="width:100%"
                    id="handReceipt">
                <display:column property="name" title="Hand Receipt Identifier" />
                <display:column title="Assigned User">
                    <c:out value="${handReceipt.assignedUser.displayName}" />
                </display:column>
                <display:column title="Assigned By">
                    <c:out value="${handReceipt.custodian.displayName}" />
                </display:column>
                <display:column property="issueDate" title="Issue Date" />
                <display:column property="returnDate" title="Due Date" />
                <display:column property="itemCount" title="Total Items" />
                <display:column title="Actions">
                    <html:form method="post" action="hrDummy.do">
                        <html:button property="dummy" value="Edit" title="Edit"/>
                        <html:button property="dummy" value="Close" title="Close" />
                    </html:form>
                </display:column>

            </display:table>
        </portal:box>
    </div>
    </body>
</html>